package com.neusoft.elmboot.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.neusoft.elmboot.po.dto.UserPointTupleDTO;
import com.neusoft.elmboot.po.point.Point;
import com.neusoft.elmboot.po.point.PointMall;
import com.neusoft.elmboot.po.point.UserPointTuple;
import com.neusoft.elmboot.po.vo.UserPointTupleVO;
import io.swagger.v3.oas.annotations.Operation;
import org.springframework.security.core.parameters.P;

import java.util.List;

public interface PointService extends IService<Point> {

    @Operation(summary = "初始化")
    Integer init(String userId, Integer value);

    @Operation(summary = "增加积分")
    void addPoint(String userId, Integer channelId, String eventId, Integer amount);

    @Operation(summary = "兑换商品（消费积分）")
    void exchange(List<UserPointTupleDTO> tupleList);

    @Operation(summary = "获取积分商城的所有商品")
    List<PointMall> getPointMallList();

    @Operation(summary = "展示用户兑换商品")
    List<UserPointTupleVO> showUserPointTupleList(String userId);
}
